package sanrenxing.dayEnd.backRepertoryTotal.domain;

import java.io.Serializable;

/**
 * 功能：现金库存实体类
 * 作者：赵思睿
 * 日期：2021/3/16 0016-10:15
 * 版本：1.0
 */
public class CashStock implements Serializable {
    //现金库存编号
    private String cashId;
    //基金编号
    private String fundId;
    //现金账户编号
    private String caId;
    //现金余额
    private double caMoney;
    //统计时间
    private String time;

    /**
     * 默认构造方法
     */
    public CashStock() {
    }

    /**
     * 带参构造方法
     * @param cashId 现金库存编号
     * @param fundId 基金编号
     * @param caId 现金账户编号
     * @param caMoney 现金余额
     * @param time 统计时间
     */
    public CashStock(String cashId, String fundId, String caId, double caMoney, String time) {
        this.cashId = cashId;
        this.fundId = fundId;
        this.caId = caId;
        this.caMoney = caMoney;
        this.time = time;
    }

    //自动生成的setter/getter方法
    public String getCashId() {
        return cashId;
    }

    public void setCashId(String cashId) {
        if(cashId.trim().equals("")){
            this.cashId=null;
        }else
        this.cashId = cashId;
    }

    public String getFundId() {
        return fundId;
    }

    public void setFundId(String fundId) {
        this.fundId = fundId;
    }

    public String getCaId() {
        return caId;
    }

    public void setCaId(String caId) {
       this.caId = caId;
    }

    public double getCaMoney() {
        return caMoney;
    }

    public void setCaMoney(double caMoney) {
        this.caMoney = caMoney;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        if(time.trim().equals("")){
            this.time=null;
        }else this.time = time;
    }
}
